import http from "@/utils/request"
//获取商品类型
export const getVipProduct = () => http.get("/product/get_product", {
    params: {
        category_id: "20210827165510715"
    }
})

//生成预支付定单
export const order = (product_id, quantity) => http.post("/order/pre_order", { product_id, quantity })

//删除订单
export const deleteOrder=(order_id)=>http.get("/order/del_order", {
    params: {
        order_id
    }
})

//查询订单详情
export const queryOrderDetails=(order_id)=>http.post("/order/get_order",{order_id})

//发起支付
export const startPay = (order_id) => http.post("/pay/payment", { order_id })

//查询支付结果
export const queryOrderResult = (order_id) => http.get("/order/query_order_status", {
    params: {
        ord
    }
})
